-
-
Notifications
You must be signed in to change notification settings - Fork 285
Fix manifest validation issue #4541
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
Sadly this isn't very easy to test because we don't have a simple reproducer, I only saw this on CI, not locally. One could try to jump on those machines with tmate, but I haven't had a chance to do that (CC @vchuravy in case you have spare time for this) |
reproduces for me: Important was to remove the |
|
Thanks. I assume you've checked out EnzymeAD/Enzyme.jl@ |
|
No need, I was on |
|
I can reproduce it locally and this PR fixes it. All I did between testing is delete the manifest. Same depot. |
|
Do you have an idea of could have suddenly caused this? Could have been a change in the registry? |
|
Not me, but Claude. Does the following make sense? Yes, this could absolutely be caused by registry state changes. Here's how: Registry-dependent scenarios that could trigger this bug:
Let me verify this by checking when LLVM_jll added Using "Fetch Web Page" Fetched https://raw.githubusercontent.com/JuliaRegistries/General/master/L/LLVM_jll/WeakDeps.toml Using "Fetch Web Page" Fetched https://github.com/JuliaPackaging/Yggdrasil/blob/master/L/LLVM/LLVM_full%40v19/bundled/Project.toml Using "Fetch Web Page" Fetched https://github.com/JuliaPackaging/Yggdrasil/tree/master/L/LLVM Based on my analysis, yes, this bug is almost certainly dependent on registry state. Here's the detailed explanation: Why this is registry-dependent:The Root CauseThe bug occurs when:
Registry State Triggers
|
Fixes #4540
The issue isn't obvious to me, but this is the best Claude Opus 4.5 could come up with
Bug Analysis: Missing Manifest Entry Error
Error Message
Also seen with:
Enzyme→ADTypesKey Observations
Root Cause
When building
deps_mapfor manifest entries,query_deps_for_versionreturns ALL deps including weak deps:But weak deps that weren't triggered (no extension trigger present) are NOT in
vers/pkgsbecause the resolver marked them as "uninstalled".Result:
entry.depscontains UUIDs that have no corresponding manifest entry.Why Existing Fix Doesn't Help
Commit
cdc17a0d7("allow having unknown weak dependencies") handles weak deps that are not in any registry. It filters them fromfixedbefore resolution.This bug is about weak deps that ARE registered but weren't resolved because the trigger wasn't needed.
The Fix
Filter
deps_mapto only include UUIDs that are actually inpkgs:Why Intermittent?
Unclear. Possibly related to:
@giordano